import request from '@/utils/request'

// 查询任务配置列表
export function listDataTaskconf(data) {
  return request({
    url: '/console/dataTaskconf/list',
    method: 'post',
    data
  })
}

export function listTaskProgressconf(data) {
  return request({
    url: '/console/taskJobManage/taskList',
    method: 'post',
    data
  })
}

// 查询任务配置详细
export function getDataTaskconf(
  data) {
  return request({
    url: "/console/dataTaskconf/getInfo",
    method: 'post',
    data: data
  })
}
// 新增任务配置
export function addDataTaskconf(data) {
  return request({
    url: '/console/dataTaskconf',
    method: 'post',
    data: data
  })
}

// 修改任务配置
export function updateDataTaskconf(data) {
  return request({
    url: '/console/datasourceInfo/getinfo',
    method: 'post',
    data: data
  })

}

// 删除任务配置
export function delDataTaskconf(
  data) {
  return request({
    url: '/console/dataTaskconf/remove',
    method: 'post',
    data: data
  })
}

export function delDataTaskconfVerify(
  data) {
  return request({
    url: '/console/dataTaskconf/verify',
    method: 'post',
    data: data
  })
}
export function DataTaskconfTaskStop(
  data) {
  return request({
    url: '/console/taskJobManage/taskStop',
    method: 'post',
    data: data
  })
}



